package com.nimitz.module.demo.service.impl;

import com.nimitz.module.demo.domain.DemOrder;
import com.nimitz.module.demo.mapper.DemOrder2Mapper;
import com.nimitz.module.demo.service.IDemOrder2Service;
import com.nimitz.module.demo.service.IDemOrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 订单 业务层实现
 */
@Service
public class DemOrder2ServiceImpl implements IDemOrder2Service {

    @Resource
    private DemOrder2Mapper orderMapper;

    /**
     * 根据条件查询订单列表（含分页）
     *
     * @param order 订单
     * @return 订单集合
     */
    @Override
    public List<DemOrder> selectOrderList(String brandName, DemOrder order) {
        return orderMapper.selectOrderList(brandName, order);
    }
}
